
cmake_minimum_required(VERSION 3.11)
PROJECT(TEST)
set(CMAKE_CXX_STANDARD 17)
# 添加这一行，确保是Debug模式
set(CMAKE_BUILD_TYPE Debug)
# 查找OpenCV库
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
# 包含
include_directories(/opt/MVS/include) 
# 链接库
link_directories(/opt/MVS/lib/aarch64)

include_directories(${PROJECT_SOURCE_DIR}/test/include)
aux_source_directory(${PROJECT_SOURCE_DIR}/test/src SRC)
add_executable(show ${SRC})
# 链接OpenCV库
# target_link_libraries(show 
#     ${OpenCV_LIBS}
# )
target_link_libraries(show 
    ${OpenCV_LIBS}
    libMvCameraControl.so
    -lpthread
    -luuid
    # -lx11 # 若涉及图像显示，可能需要
)